package com.demoproject.demo.dj.pojo.entity;

public class GlmapperGeneric<T> {
    private T t;

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public static void noSpecifyType(){
        GlmapperGeneric glmapperGeneric=new GlmapperGeneric();
        glmapperGeneric.setT("test");
        System.out.println((String) glmapperGeneric.getT());
    }

    public static void specifyType(){
        GlmapperGeneric glmapperGeneric=new GlmapperGeneric();
        glmapperGeneric.setT("test");
        System.out.println(glmapperGeneric.getT());
    }
    public static void main(String[] args){
      noSpecifyType();
      specifyType();
      ThreadLocal threadLocal=new ThreadLocal();
    }
}
